package design.State;

/**
 * Created by looper on 2017/8/24.
 */
public class OnlineState extends State {
  public OnlineState(StateName stateName) {
    super(stateName);
  }

  @Override
  public void changeState(Context context) {
    //转换为隐身状态
    context.setState(new CloakingState(StateName.CLOAKING));
  }
}
